/**
 * Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree.
 */
/* can be included multiple times */

#ifndef STAT_DEFINE
#error STAT_DEFINE() macro not defined
#define STAT_DEFINE(...)
#endif

// Number of messages sent
STAT_DEFINE(message_sent, SUM)
// Number of messages received
STAT_DEFINE(message_received, SUM)
// Number of microseconds that workers spent processing callbacks for this
// message type.
STAT_DEFINE(message_worker_usec, SUM)
// Bytes of messages of this type enqueued in Socket.
// Including messages waiting for traffic shaping bandwidth, waiting for
// serialization, waiting to be passed to TCP.
STAT_DEFINE(message_bytes_pending, SUM)

#undef STAT_DEFINE
#undef RESETTING_STATS
